project(FeAlg)

include_directories(${CMAKE_SOURCE_DIR}/src/)

SET(FE_NODE_SRC ${CMAKE_SOURCE_DIR}/src/FeAlg)

set(FEALG_H_CPP
		${FE_NODE_SRC}/Export.h
		${FE_NODE_SRC}/CoordConverter.h
		${FE_NODE_SRC}/CoordConverter.cpp
	)

    add_library(
	${PROJECT_NAME} STATIC 
	${FEALG_H_CPP} 
	)
    ADD_DEFINITIONS(-DFEALG_LIBRARY_STATIC)

target_link_libraries(
    ${PROJECT_NAME} 
    ${OPENSCENEGRAPH_LIBRARIES} 
    debug ${osgEarth_DEBUG_LIBRARIES} optimized ${osgEarth_RELEASE_LIBRARIES} 
 )

INSTALL(TARGETS ${OUT_NAME}  DESTINATION lib)
INSTALL(TARGETS ${OUT_NAME}  DESTINATION bin)
INSTALL(FILES ${FEALG_H} DESTINATION include/FeAlg)
